<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>学员信息录入</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <link rel="icon" th:href="@{/favicon.ico}">
    <link rel="shortcut icon" th:href="@{/favicon.ico}">
    <link type="text/css" th:href="@{/css/index.css}" rel="stylesheet"  />
    <script th:src="@{/js/jQuery1.7.2.js}" type="text/javascript"></script>
    <script th:src="@{/js/info.js}" type="text/javascript"></script>
    <style type="text/css">
        #relationInput{width: 85px!important;font-size: 12px;}
    </style>
</head>
<body>
    <div class="mian_center">
        <span class="main_titile"><img th:src="@{/images/login_j_03.png}">学员信息录入</span>
        <div class="main_info">
            <form th:action="@{/stu/add}" method="post">
                <ul class="fl">
                    <li><span class="msg">[[${stuId}]]&nbsp;&nbsp;[[${msg}]]</span></li>
                    <li>
                        <span>学员姓名:</span>
                        <input type="text" name="stuName" autocomplete="off">
                        <span class="msg">[[${stuName}]]</span>
                    </li>
                    <li>
                        <span>监护人姓名:</span>
                        <input type="text" name="stuParentName" autocomplete="off">
                        <span class="msg">[[${stuParentName}]]</span>
                    </li>
                    <li>
                        <span>关&nbsp;&nbsp;系:</span>
                        <select id="relation" name="stuParentRelation">
                            <option value="0">【请选择】</option>
                            <option value="父子/父女">父子/父女</option>
                            <option value="母子/母女">母子/母女</option>
                            <option value="其他">其他</option>
                        </select>
                        <input id="relationInput" th:style="${stuOrtherParentRelation!=null?'display:inline-block':'display:none'}" type="text" name="stuOrtherParentRelation" placeholder="请输入关系名称" title="请输入其他关系名称，例如：爷爷 叔叔" autocomplete="off">
                        <span class="msg">[[${stuParentRelation}]]&nbsp;&nbsp;[[${stuOrtherParentRelation}]]</span>
                    </li>
                    <li>
                        <span>性&nbsp;&nbsp;别:</span>
                        <select name="stuSex">
                            <option value="0">【请选择】</option>
                            <option value="1">男</option>
                            <option value="2">女</option>
                        </select>
                        <span class="msg">[[${stuSex}]]</span>
                    </li>
                    <li>
                        <span>年&nbsp;&nbsp;龄:</span>
                        <input type="number" name="stuAge" minlength="6" maxlength="16" autocomplete="off">
                        <span class="msg">[[${stuAge}]]</span>
                    </li>
                    <li>
                        <span>监护人电话号码:</span>
                        <input type="text" name="stuParentPhone" autocomplete="off">
                        <span class="msg">[[${stuParentPhone}]]</span>
                    </li>
                    <li>
                        <span>居住地址:</span>
                        <input type="text" name="stuAddress" autocomplete="off">
                        <span class="msg">[[${stuAddress}]]</span>
                    </li>
                    <li>
                        <span>所选课程:</span>
                        <select name="courseName">
                            <option value="0">【请选择】</option>
                            <option th:if="${courses != null}" th:each="course : ${courses}" th:value="${course.courseId}">[[${course.courseName}]]</option>
                        </select>
                        <span class="msg">[[${courseName}]]</span>
                    </li>
                </ul>
                <div class="clear"></div>
                <div class="main_btn">
                    <input type="hidden" name="stuId" value="0">
                    <input class="save" type="submit" value="保存">
                </div>
            </form>
        </div>
        <div class="clear"></div>
    </div>
</body>
</html>